import { ajaxGet,ajaxPost } from "@/utils/request.js"

// 读取大类数据的接口
export function getCategoryList(params){
    const url = "goods/getCategoryList"
    return ajaxGet(url,params)
}

// 读取小类数据的接口
export function getCategorySubList(data){
    const url = "goods/getCategorySubList"
    return ajaxPost(url,data)
}

// 读取商品列表的接口
export function getGoodsListByCategorySubID(data){
    const url = "goods/getGoodsListByCategorySubID"
    return ajaxPost(url,data)
}